package DomainLayer;

import java.math.BigDecimal;
import java.util.Date;

import Annotations.EntityNameAnnotation;
import Annotations.AttributeNameAnnotation;

@EntityNameAnnotation(Name="FeedBack")
public class FeedBackEntity extends AbstractEntity{
	@AttributeNameAnnotation(Name = "Message", isAggregator = false)
	private String message;
	@AttributeNameAnnotation(Name = "FromUser", isAggregator = false)
	private String from;
	@AttributeNameAnnotation(Name = "DateMessage", isAggregator = false)
	private BigDecimal date;
	@AttributeNameAnnotation(Name = "Page", isAggregator = false)
	private String page;
	public FeedBackEntity()
	{
		this.message = null;
		this.from = null;
		this.date = BigDecimal.valueOf(new Date().getTime());
		this.page = null;

	}
	public FeedBackEntity(String message,String from,String page)
	{
		this.message = message;
		this.from = from;
		this.date = BigDecimal.valueOf(new Date().getTime());
		this.page = page;
	}
	
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public String getFrom() {
		return from;
	}
	public void setFrom(String from) {
		this.from = from;
	}
	public BigDecimal getDate() {
		return date;
	}
	public void setDate(long date) {
		this.date = BigDecimal.valueOf(date);
	}
	public String getPage() {
		return page;
	}
	public void setPage(String page) {
		this.page = page;
	}
	
	
}
